package com.bsh.service;

import com.alibaba.fastjson.JSONObject;
import com.bsh.api.Exception.ApiException;
import com.bsh.utils.ApiMessage;

/**
 * Created by Administrator on 2016/9/2.
 */
public interface ApiUserBankService {

    /**
     * 添加银行卡
     * @param dto
     * @return
     * @throws ApiException
     */
    ApiMessage saveUserBank(JSONObject dto) throws ApiException;
    /**
     * 查询银行列表
     * @param dto
     * @return
     * @throws ApiException
     */
    ApiMessage queryBankList(JSONObject dto) throws ApiException;

    /**
     * 查询我的银行卡
     * @param dto
     * @return
     * @throws ApiException
     */
    ApiMessage queryMyBankList(JSONObject dto) throws ApiException;

    /**
     * 删除银行卡
     * @param dto
     * @return
     * @throws ApiException
     */
    ApiMessage delUserBank(JSONObject dto) throws ApiException;
}
